
<?php


  $id = $_GET['id']; //获取地址栏中参数名是id的值
  //删除语句
/*  $sql = "delete from `admin` where `id`=$id";
  //执行语句
  mysqli_query($link,$sql);

  $_rows = mysqli_affected_rows($link);*/

  $_rows = del('admin',$id);

  if($_rows>0){
     echo"<script>alert('删除成功');location.href='index.php?c=admin&a=list&admin=1'</script>";die;
  }else{
     echo"<script>alert('删除失败');history.go(-1)</script>";die;
  }



?>

